#ifndef _H_NETIF_
#define _H_NETIF_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>

#include "hton64.h"

size_t GetNetInterfaceCount();
int GetNetInterfaceIp( size_t idx , uint32_t *ip , char *ip_str_8bytes_and_end_of_1byte , char *ip_str_15bytes_and_end_of_1byte );
int GetNetInterfaceMac( size_t idx , uint64_t *mac , char *mac_str_12bytes_and_end_of_1byte , char *mac_str_17bytes_and_end_of_1byte );

#ifdef __cplusplus
}
#endif

#endif

